package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class CalcTest {
    public static void main(String[] args) {
        Calculator c=new Calculator();
        int a=20,b=30;
        System.out.println("计算之前:a="+a+",b="+b);
        int res = c.add(a, b);
        System.out.println("和是："+res);
        System.out.println("计算之后:a="+a+",b="+b);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>");
        Student stu=new Student();
        stu.name="西门吹雪";
        stu.math=60;
        stu.english=59;
        stu.chinese=61;
        System.out.println("求总成绩之前：");
        stu.show();
        int sum = c.sum(stu);
        System.out.println("总分是："+sum);
        System.out.println("求总成绩之后：");
        stu.show();
    }
}
